package data;

import java.awt.Graphics2D;

import main.Core;

/**
 * 
 * @author Ygor
 * 
 */
public class TextSprite extends SceneObject {
	private String str;
	private int x, y;
	private boolean visible;

	@Override
	public void Update(double elapsedTime) {

	}

	@Override
	public void Draw(Graphics2D g) {
		if (visible) {
			g.drawString(str, x, y);
		}
	}

	public TextSprite(String texto, int X, int Y, Core c) {
		super(c);
		this.str = texto;
		this.x = X;
		this.y = Y;
		visible = true;
	}

}
